/*
 * DMAC1.h
 *
 *  Created on: 02/04/2013
 *      Author: RIchard
 */

#ifndef DMAC1_H_
#define DMAC1_H_

#include "../../cdef.h"

typedef enum
{
   DMA_nenChannel0   = 0u,
   DMA_nenChannel1   = 1u,
   DMA_nenChannel2   = 2u
} DMA_tenChannel;

typedef struct
{
   DMA_tenChannel enChannel;
   uint16         u16Samples;
   vuint16       *pu16Source;
   vuint16       *pu16Destination;
   tvFuncPtr      pfFinishCallback;
} DMA_tstTransfer;

void DMA_vStartTransfer( DMA_tstTransfer *stTransfer );

#endif /* DMAC1_H_ */
